package a06_command;

public class Client {

	public static void main(String[] args) {
		// receiver
		Tv rec = new Tv();
		// 开机命令
		Command command = new CommandOn(rec);
		// 类似遥控器
		Invoker invoker = new Invoker(command);
		invoker.action();

	}

	public static void test() {
		Tv tv = new Tv();
		tv.turnOn();
	}

}
